<table align="center" width=800>
	<tr>
		<th style="border-right:0px; border-bottom:0px" colspan=4 >
			<img src="/media/logo.png">
		</th>
		<th align="right" style="border-left:0px; border-bottom:0px">
			<table style="background:#151515">
				<tr>
		{% if request.user.is_authenticated %}
					<th rowspan=2 style="border:0px; background:#222">
						<img src={{user.pic_url}} height="50" />
					</th>
					<th class="meio" align="right" style="background:#222; border-left:0px; border-right:0px; border-top:0px" colspan=2>
						<a href="/rank/{{ user.auth.username }}">{{ user.auth.username }}</a>
		{% endif %}
					</th>
				</tr>

				<tr>
					<th style="background:#222; border-left:0px; border-right:0px; border-bottom:0px">
		{% if request.user.is_authenticated %}
							<a href="/profile">Perfil</a>
		{% else %}
                     <a href="{% url django.contrib.auth.views.login %}?next={{request.path}}">Entrar</a>
		{% endif %}
					</th>
					<th style="background:#222; border-left:0px;border-right:0px; border-bottom:0px">
		{% if request.user.is_authenticated %}
                     <a href="{% url django.contrib.auth.views.logout %}?next={{request.path}}">Sair</a>
		{% else %}
							<a href="/register?next={{request.path}}">Registrar</a>
		{% endif %}
					</th>
				</tr>
			</table>
		</th>
	</tr>

	<tr>
		<th width="25%"><a href="/"> Principal </a> </th>
		<th width="25%"><a href="/blog/"> Noticias </a></th>
		<th width="25%"><a href="/rank/"> Ranking </a></th>
		<th width="25%"><a href="/game/"> Lista de Jogos </a></th>
		<th width="25%"><a href="/boost/"> Boost </a></th>
	</tr>

</table>

